package cn.itcast.service.impl;

import cn.itcast.dao.impl.StudentDaoImpl;
import cn.itcast.domain.Student;
import cn.itcast.service.BaseService;

import java.util.ArrayList;

public class BaseServiceImpl implements BaseService {
    @Override
    public Student findByStudentnameAndPassword(String username, String password) {
        return new StudentDaoImpl().findByStudentnameAndPassword(username, password);
    }

    @Override
    public ArrayList<Student> findAllStudent() {
        return new StudentDaoImpl().findAllStudent();
    }
}
